import request from '@/utils/request'

// 查询筛选选项列表
export function listDispatchFilterOption(query) {
  return request({
    url: '/system/dispatchFilterOption/list',
    method: 'get',
    params: query
  })
}

// 查询筛选选项详细
export function getDispatchFilterOption(filterOptionId) {
  return request({
    url: '/system/dispatchFilterOption/' + filterOptionId,
    method: 'get'
  })
}

// 新增筛选选项
export function addDispatchFilterOption(data) {
  return request({
    url: '/system/dispatchFilterOption',
    method: 'post',
    data: data
  })
}

// 修改筛选选项
export function updateDispatchFilterOption(data) {
  return request({
    url: '/system/dispatchFilterOption',
    method: 'put',
    data: data
  })
}

// 删除筛选选项
export function delDispatchFilterOption(filterOptionId) {
  return request({
    url: '/system/dispatchFilterOption/' + filterOptionId,
    method: 'delete'
  })
}
